package com.frxuexi.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.GlideUtil
import com.frxuexi.lib_base.entity.VideoBeanItem
import com.frxuexi.video.R

class VideoAdapter:BaseQuickAdapter<VideoBeanItem,BaseViewHolder>(R.layout.item_video) {
    override fun convert(helper: BaseViewHolder, item: VideoBeanItem) {
        helper.setText(R.id.video_uname,item.authname)
        helper.setText(R.id.video_title,item.caption)
        GlideUtil.loadRoundImg(item.videomainimg,helper.getView(R.id.video_img))
        GlideUtil.loadRoundImg(item.headpath,helper.getView(R.id.video_author))
    }
}